package com.lyf.auth.domain.response;

import com.lyf.auth.constant.ResponseCodeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel
public class AuthCommResponse {
   @ApiModelProperty(
      required = true,
      example = "29000"
   )
   private Integer code;
   @ApiModelProperty(
      required = true,
      example = "success"
   )
   private String msg;

   public Integer getCode() {
      return this.code;
   }

   public void setCode(Integer code) {
      this.code = code;
   }

   public String getMsg() {
      return this.msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public void addResponse(ResponseCodeEnum responseCodeEnum) {
      this.setCode(responseCodeEnum.getCode());
      this.setMsg(responseCodeEnum.getMsg());
   }

}
